//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "code_frmConfig.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "CSPIN"
#pragma resource "*.dfm"
//TfrmConfig *frmConfig;
//---------------------------------------------------------------------------
__fastcall TfrmConfig::TfrmConfig(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TfrmConfig::FormCreate(TObject *Sender)
{
     cbbDBType->Items->Add("SQLServer");
     cbbDBType->Items->Add("Oracle");
     cbbDBType->ItemIndex = 0;
     cbbDBType->Enabled = false;
     edtIP->Enabled = false;
     edtRecordFileSize->Enabled = false;
     

}
//--------------------------------------------------------------------------

void __fastcall TfrmConfig::chkNetClick(TObject *Sender)
{
      if(chkNet->Checked )
      {
          cbbDBType->Enabled = true;
          edtIP->Enabled = true;
      }
      else
      {
          cbbDBType->Enabled = false;
          edtIP->Enabled = false;
      }
}
//---------------------------------------------------------------------------


void __fastcall TfrmConfig::chkRecordClick(TObject *Sender)
{
      if(chkRecord->Checked )
      {
          edtRecordFileSize->Enabled = true;
      }
      else
      {
          edtRecordFileSize->Enabled = false;
      }
}
//---------------------------------------------------------------------------

